package com.company.dao;

import com.company.entity.CompanyInfo;

;

public class CompanyinfoDao extends BaseDao<CompanyInfo> {
	CompanyInfo companyInfo;

	public CompanyInfo getCompanyInfo() {
		return companyInfo;
	}

	public void setCompanyInfo(CompanyInfo companyInfo) {
		this.companyInfo = companyInfo;
	}

	public String query() {
		String sql = "from CompanyInfo";
		return queryEntiy(sql).getCompanyInfoZh();
	}


	public CompanyInfo list() {
		String sql = "from CompanyInfo";
		return queryEntiy(sql);
	}

	public void update(CompanyInfo companyInfo) {
		companyInfo.setId(1);
		super.update(companyInfo);
	}
}
